#include "passworddbmgmt.h"
#include "ui_passworddbmgmt.h"
#include "databaseconnector.h"

PasswordDBMgmt::PasswordDBMgmt(QWidget *parent) :
  QWidget(parent),
  ui(new Ui::PasswordDBMgmt)
{
  // getAllPasswordsFromCurrentUser();
  ui->setupUi(this);
}

PasswordDBMgmt::~PasswordDBMgmt()
{
  delete ui;
}

void PasswordDBMgmt::getAllPasswordsFromCurrentUser (void)
{
  DatabaseConnector dbConn;

  dbConn.setDb_host("database.db");
  dbConn.setDb_user("");
  dbConn.setDb_pass("");
  dbConn.setDb_type("QSQLITE");

  //dbConn.db.exec();

  QList<QString> allPasswords ;
  //allPasswords.append(test);


  // pseudo: set ui->leftTable( allPasswords );
}
